# model

# contains some necessary information for the raid-5 upload, e.g. 
#   the md5-checksums for the file-parts, 
#   the md5-checksum for the parity-part,
#   the md5-checksum for the whole file,
#   the order of the files, for the merge-process
#   ...

from google.appengine.ext import db

class OctopusCloudDatabaseRaidFive(db.Model):
    user = db.StringProperty(required=True)
    filename = db.StringProperty(required=True)
    filesize = db.IntegerProperty(required=True)
#    filesize = db.StringProperty(required=True)
    blobInfoKey = db.StringProperty()
    lastModified = db.DateTimeProperty(auto_now_add=True)
#    lastModified = db.StringProperty()
    
    md5File = db.StringProperty(required=True)
    
    md5PartOne = db.StringProperty()
    fileOrderOne = db.IntegerProperty()
    storageOne = db.StringProperty()
    
    md5PartTwo = db.StringProperty()
    fileOrderTwo = db.IntegerProperty() 
    storageTwo = db.StringProperty()
    
    md5Parity = db.StringProperty()
    fileOrderThree = db.IntegerProperty() 
    storageThree = db.StringProperty()
    
    